package com.zkyc.framework.website.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.vo.ResultVO;
import com.zkyc.framework.common.vo.website.UploadVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author bing.bai
 * @create 2022/5/27
 */
@Service
@FeignClient(value = Constant.SERVICE_FILE, contextId = "fileService", fallback = FileServiceFallBack.class)
public interface FileClient {

    @GetMapping("uploadByUrl")
    UploadVo uploadByUrl(@RequestParam String url, @RequestParam String websiteId) throws Exception;
}
